﻿package com.saint.utils.events{
	
	import flash.events.Event;

	public class ButtonEvent extends Event {
		
		public static const BUTTON_PRESS:String = "button press";
		public static const BUTTON_RELEASE:String = "button release";
		
		public var eventID:String;
		public var data:*;
		
		public function ButtonEvent(type:String, data:*=null, bubbles:Boolean = false, cancelable:Boolean = false) {
			this.eventID = type;
			this.data = data;
			super(type, bubbles, cancelable);
		}

		/**
		 * Returns a String containing all the properties of the current instance.
		 * @return A string representation of the current instance.
		 */
		public override function toString():String {
			return formatToString("ButtonEvent", "type", "bubbles", "cancelable", "eventPhase");
		}
	}
}